package com.gill.ioc.postProcessor;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBeanPostProcess implements BeanPostProcessor{
	@Override
	public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
		System.out.println(beanName+"实例化前");
		return bean;
	}

	@Override
	public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
		System.out.println(beanName+"实例化后");
		return bean;
	}
	/**
	 * appConfig实例化前
	 * appConfig实例化后
	 * userFactoryBean实例化前
	 * userFactoryBean实例化后
	 * hello实例化前
	 * hello实例化后
	 * test01实例化前
	 * test01实例化后
	 */
}
